import request from '@/utils/request'

// 查询微信客户端版本列表
export function listClientVersion(query) {
  return request({
    url: '/wx/clientVersion/list',
    method: 'get',
    params: query
  })
}

// 查询微信客户端版本详细
export function getClientVersion(id) {
  return request({
    url: '/wx/clientVersion/' + id,
    method: 'get'
  })
}

// 新增微信客户端版本
export function addClientVersion(data) {
  return request({
    url: '/wx/clientVersion',
    method: 'post',
    data: data
  })
}

// 修改微信客户端版本
export function updateClientVersion(data) {
  return request({
    url: '/wx/clientVersion',
    method: 'put',
    data: data
  })
}

// 删除微信客户端版本
export function delClientVersion(id) {
  return request({
    url: '/wx/clientVersion/' + id,
    method: 'delete'
  })
}

// 导出微信客户端版本
export function exportClientVersion(query) {
  return request({
    url: '/wx/clientVersion/export',
    method: 'get',
    params: query
  })
}